<?php 
session_start();

if(!isset($_SESSION['username']))
{
	header("Location: ../login.php");
	exit();
} 
require("../db/opendb.php");
//echo $_SESSION["role"];
$query = "select * from Users where Username='".$_SESSION["username"]."'";
$result = mysql_query($query) or die ("SQL Error".mysql_error());
$row=mysql_fetch_assoc($result);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Realivent Account Administration</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style11 {color: #0099FF}
.style13 {
	font-size: 14px;
	color: #666666;
}
.style14 {font-size: 16px}
.style17 {color: #FF9900}
-->
</style>
</head>

<body>
<?php include('account_header.php'); ?>

<table width="963" border="0" cellspacing="0" cellpadding="0">

  <tr>
    <td valign="top" style="height:300px;">
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="28%" valign="top" align="left">
	<Div style="padding:10px 0px 0px 30px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:20px; color:#666666">
      <?php 
	  if ($_SESSION["role"] == 0)
	  include("buyer_menu.php");
	  else
	  include("menu.php");
	   ?>
      </Div></td>
    <td width="72%" valign="top" align="left"><Div class="style11" style="padding:10px 0px 0px 30px; font-family:Verdana, Arial, Helvetica, sans-serif;">
      Welcome <?php echo $row["First_Name"]." ".$row["Last_Name"]; ?><BR>
	  
	  <?php 
		if ($_GET["time"] == 1)
		{
		?>
		<div style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#333333; padding-right:30px;">
		  <p>Since this is your first visit to Realivent.com, I would like to take some time and explain how we are going to make your home search faster, easier, and happier then any other real estate website.<br>
		      <br>
		    We are about finding a home that fits your lifestyle and your family needs. We do not just show you every house that is available because without us knowing who you are, we are just wasting your time, and you home search actually becomes harder for you because you become overwhelmed.</p>
		  <p>So, in order to find a house that fits your familiy needs, you need to create a profile. It's very easy because there are no questions!!! That's right, no questions, you have to see it to believe it. Your profile follows you are you search for homes, read real estate articles, post comments, etc... Your profile grows with your likes and dislikes, and will eventually create your ideal house that is perfect for you. Your profile can also be used to connect with realtors and other users to get help with buying that house. We only connect you to people that can help you and vice versa. Let's create your profile and then talk about other cool stuff you can do here. <BR>
		   <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width=50% style="border-right:1px dashed black; " align="center"><a href=buyer_profile.php>Create Profile Now</a></td>
    <td width=50% align="center"><a href=menu_help.php>I'll create the profile later. I want to learn more about Realivent</A></td>
  </tr>
</table>

		  
		</div>
		<?
		}
		?>
</DIV>
	</td>
  </tr>
  <tr>
    <td valign="top" align="left">&nbsp;</td>
    <td valign="top" align="left">
		
	</td>
  </tr>
</table>

		
	</td>
  </tr>
  <tr>
    <td><!--<img src=../images/bottom.jpg>--></td>
  </tr>
</table>

</body>
</html>
<?php require("../db/closedb.php");?>